package com.soboot.system.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.soboot.system.entity.SysRoleMenu;
import com.soboot.system.mapper.SysRoleMenuMapper;
import com.soboot.system.service.ISysRoleMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author:
 * @createTime: 2022年09月26日 21:16:28
 * @version:
 * @Description:
 * @Copyright:
 */
@Service
public class RoleMenuServiceImpl extends ServiceImpl<SysRoleMenuMapper, SysRoleMenu> implements ISysRoleMenuService {

    @Autowired
    private SysRoleMenuMapper sysRoleMenuMapper;

    @Override
    public List<String> selectMenuByRoleId(List<Integer> roleIdList) {

        List<String> menuList = sysRoleMenuMapper.selectMenuByRoleId(roleIdList);
        return menuList;
    }
}
